package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import jakarta.validation.constraints.*;

/**
 * 考生表单对象
 *
 * @author youlaitech
 * @since 2025-07-15 15:15
 */
@Getter
@Setter
@Schema(description = "考生表单对象")
public class ExamUserForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空")
    @Size(max=200, message="姓名长度不能超过200个字符")
    private String name;

    @Schema(description = "学号/工号")
    @NotBlank(message = "学号/工号不能为空")
    @Size(max=200, message="学号/工号长度不能超过200个字符")
    private String number;

    @Schema(description = "试卷ID")
    @NotNull(message = "试卷ID不能为空")
    private Long paperId;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;


}
